package view

import (
	"github.com/gin-gonic/gin"
	"vrcm/src/vrcm/app/admin/apis/view_manage"
	"vrcm/src/vrcm/app/admin/router"
)

func init() {
	router.NoCheckRole = append(router.NoCheckRole, registerViewCheckRouter)
}

// registerViewCheckRouter
func registerViewCheckRouter(v1 *gin.RouterGroup) {
	api := view_manage.ViewCheck{}
	r := v1.Group("/view-check")
	{
		r.POST("/get-list", api.GetPage)
		r.POST("/insert", api.Insert)
		r.POST("/update", api.Update)
		r.POST("/delete", api.Delete)
		r.POST("/reset-view-code", api.ResetViewCode)
		r.POST("/update-join-time", api.UpdateJoinTime)
		r.POST("/get-view-code-detail", api.GetViewCodeDetail)
	}
}
